﻿namespace ctolua.Models.Expand
{
    public static class EMsg
    {
        /// <summary>
        /// 向 本地 玩家发送消息
        /// </summary>
        /// <param name="text"></param>
        public static void show_msg_to_role(string text) => game_api.show_msg_to_role(MRole.getOwnerRole.role, text, false);
        /// <summary>
        /// 向指定玩家发送消息
        /// </summary>
        /// <param name="r"></param>
        /// <param name="text"></param>
        public static void show_msg_to_role(this Role r, string text) => game_api.show_msg_to_role(r, text, false);
        /// <summary>
        /// 向玩家正上方显示提示信息
        /// </summary>
        /// <param name="seconds ">  持续时间   0.0</param>
        /// <param name="text ">  信息   </param>
        public static void api_show_text(this Role r, double? seconds, string text) => game_api.api_show_text(r, seconds, text, false);

    }
}
